<%--
Created by IntelliJ IDEA.
User: zbsilent
Date: 2020/3/19
Time: 7:44 下午
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%--<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>--%>
<%--<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>--%>

<html>
<head>
    <link href="/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/js/test.js"></script>
</head>
<body>

<s:form action="queryData" method="get" namespace="/">
    <!--标签会自动换行不横向排列-->
    <%--    <s:label>sdfsdf</s:label> <s:label>sd2fsdf</s:label>--%>
    <%--         <s:textfield name="user.username"/> <s:textfield name="user.password"/>--%>
    <%--         <s:submit key="save"/>--%>
    <input type="text" name="user.username"><input type="text" name="user.password">
    <input type="submit">
</s:form>

<table class="altrowstable" id="alternatecolor">
    <caption>经过努力完成报表主界面</caption>

    <tr>
        <th>公司名称</th>
        <th>公司地址</th>
        <%--        <th>测试循环打印dange参数</th>--%>
        <%--        <th>测试循环打印参数</th>--%>
    </tr>

    <s:set var="count" value="1"/>
    <s:iterator value="userList">

        <tr>
            <th>
                <s:property value="username"/>
            </th>
            <th>
                <s:property value="password"/>
            </th>
                <%--            <th>--%>
                <%--                <s:property value="#count"/>--%>
                <%--            </th>--%>
                <%--            <th>--%>
                <%--                <s:property value="%{formatStringToDouble(#count)}"/>--%>
                <%--            </th>--%>
        </tr>


        <%--        <fmt:formatNumber type="number"--%>
        <%--                          maxFractionDigits="3" value="${count}" />--%>
    </s:iterator>
    <tr>
        <th>合计</th>
        <th><s:property value="sum"/>
    </tr>

</table>


</body>
</html>
